<template>
    <div>我是首页</div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { userLogin } from '@/api/user';
const fetchAndDisplayUser = async () => {
    const userId = {
        username: '1111',
        password: '2222'
    };
    const user = await userLogin(userId);
    console.log(user);
};
fetchAndDisplayUser();
</script>

<style scoped></style>
